package com.gzz.orchid.context.infrastructure.persistence.entity.inv;

import com.gzz.orchid.context.infrastructure.persistence.AbstractPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 库存表inv_stock
 *
 * @author higmd
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class InvStockPo extends AbstractPojo {
    private Long id;
    /**
     * skuId
     */
    private Long skuId;
    /**
     * 库存数量 quantity
     */
    private int quantity;
    /**
     * 锁定数量 withheld_qty
     */
    private int withheldQty;
    /**
     * 占用数量 occupy_qty
     */
    private int occupyQty;
    /**
     * 是否允许超卖 allowed_overdraft
     */
    private boolean allowedOverdraft;
    /**
     * 超卖限制 overdraft_limit
     */
    private int overdraftLimit;
    /**
     * 安全线 safety_line
     */
    private int safetyLine;
    /**
     * 库存状态：0-可用，1-冻结，-1-已删除
     */
    private int status;
}
